{% extends 'layout.html' %}
{% block title %}
    <title>个人信息</title>
{% endblock %}

{% block content %}
    <div class="panel panel-default">
        <div class="panel-heading">密码修改</div>
        <div class="panel-body">
            <form action="{% url 'user_personal_pwd' %}" method="post">
                <div class="form-group">
                    <label for="old_pwd">旧密码</label>
                    <input type="password" class="form-control" name="old_pwd"
                           id="old_pwd"
                           placeholder="请输入原始密码">
                </div>
                <div class="form-group">
                    <label for="new_pwd">新密码</label>
                    <input type="password" class="form-control" name="new_pwd" id="new_pwd" placeholder="请输入新密码">
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
            <span style="color: red">{{ error }}</span>
        </div>
    </div>

{% endblock %}